<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String groupId = request.getParameter("groupId");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../jeasyui/themes/gray/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../jeasyui/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../../css/manager.css" />

<script type="text/javascript" src="../../jeasyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../jeasyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../jeasyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../js/win.js"></script>
<title>查询人员</title>
<script type="text/javascript">
	function searchUser(value){
		var name = $.trim(value);
		if(name != ""){
			$('#dg').datagrid({
			    url:'user.do?method=searchUser',  
			    queryParams:{name:name, type : 0}
			});
		}
	}

	function addUserToGroup(){
		checkSelectSomeDoAction("#dg", "添加", "人员", "../group/group.do?method=addGroupUsers&groupId=<%=groupId%>", true);
	}
</script>
</head>
<body>
<div class="dg-content">
	<table id="dg" class="easyui-datagrid" title="人员列表"
		data-options="rownumbers:true,pagination:false,fitColumns:true,iconCls:'icon-users',toolbar:'#tb'">
		<thead>
			<tr>
				<th data-options="field:'ck',checkbox:true"></th>
				<th data-options="field:'id',hidden:true"></th>
				<th data-options="field:'name',width:100,align:'center'">姓名</th>
				<th data-options="field:'status',width:60,align:'center'">状态</th>
			</tr>
		</thead>
	</table>
	<div id="tb" >
	<table>
		<tr>
			<td>
				<input class="easyui-searchbox" id="name" style="width:120px;" 
					data-options="prompt:'请输入姓名',searcher:searchUser" />
			</td>
			<td>
				<a href="#" class="easyui-linkbutton" iconCls="icon-addUser" plain="true"
				onclick="addUserToGroup()" title="添加组员"></a>
			</td>
		</tr>
	</table>
		
		
 	</div>
</div>
</body>
</html>